package com.jasonzhou.onetomanycontrol.room.entity

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey

object AdjustColorType {
    const val ADD = 1
    const val DEL = 2
    const val COLOR = 3
    const val WHITE = 4
}

@Entity(tableName = "AdjustColor")
data class AdjustColor(
    @PrimaryKey(autoGenerate = true)
    var id: Long = 0,
    @ColumnInfo(name = "type")
    val type: Int,
    @ColumnInfo(name = "color")
    val color: Int = 0,
    @ColumnInfo(name = "bright")
    val bright: Int = 0,
    /**
     * 滑动取色版上的角度，用于刷新页面
     */
    @ColumnInfo(name = "progress")
    val progress: Int = 0,
    /**
     * 色温值
     */
    @ColumnInfo(name = "temp")
    val temp: Int = 0
)
